package com.crm.model.system.department.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("crm_department")
public class Department implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id; //部门ID
    @TableField("department_name")
    private String departmentName; //部门名称
    @TableField("department_level")
    private Integer departmentLevel; //部门级别
    @TableField("order_to")
    private Integer orderTo; //排序
    //   父级部门ID
    @TableField("pid")
    private Integer pid;
    @TableField("status")
    private Integer status; //状态；0，停用；1，启用
    @TableField("create_time")
    private LocalDateTime createdTime; //创建时间
    @TableField("update_time")
    private LocalDateTime updatedTime; //修改时间
    @TableField("create_user")
    private Integer creatUser; //创建人ID
    @TableField("update_user")
    private Integer updateUser; //修改人ID
}
